Repository navigation
Constrain file snapshots to trusted directory handles - #39
Merged
bytetroll merged 5 commits intoNov 13, 2026
Merged
Conversation
…napshots # Conflicts: # .github/workflows/web-runtime-parity.yml # notebook/README.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Static web roots previously had no filesystem primitive that constrained intermediate symlinks or Windows reparse points.
read_rooted_snapshotnow opens each descendant relative to an already-open directory and returns the bounded bytes, same-handle modification time, and SHA-256 of those bytes. This also replaces per-byte interpreted hashing on the web request path.The snapshot record works through interpreted, AOT and JIT routes. A bulk
text.from_bytesconversion supports the existing interpreter web response layer; native compilation rejects that conversion explicitly until native text supports embedded NUL. Exact record schemas and boxed byte-array identity remain checked.Validation: 87 Linux host checks; five focused CTest contracts passed, including existing UTF-8, dynamic-value and native-runtime regressions. New language controls cover text/binary NIL, AOT/JIT, same-size preserved-timestamp replacement, boxing/GC, invalid type extraction and invalid native declarations. The web suite passes 1,128 checks and 15 real static HTTP cases. Four-host CI exercises Windows and Intel/Apple Silicon macOS directly; cross-compilation alone is not reported as native execution. Changed tracked files passed the redacted secrets scan.
This PR is based on #38 (
nil-sockets-entropy-bytes) and does not publish or replace an SDK release.